//
//  HNHandleCourseSelectAddressView.h
//  优学荟管理系统
//
//  Created by edz on 2018/1/8.
//  Copyright © 2018年 星道三好. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface HNHandleCourseSelectAddressView : UIView <UIPickerViewDelegate, UIPickerViewDataSource>


/** 回传省，省ID，市，市ID，区，区ID，省市区、省市区ID(ID-ID-ID) */                              
+ (instancetype)handleCourseSelectAddressViewWithRegionArr:(NSArray *)regionArr CallBack:(void (^)(NSString *province, NSNumber *provinceId, NSString *city, NSNumber *cityId, NSString *distric, NSNumber *districId, NSString *address, NSString *addressId))callBack;



// 所有地区的数组,VC的viewDidiLoad里面调用这个方法，以免来不及完成，造成卡屏
+ (void)regionArr:(void (^)(NSArray *Arr))callBack;
@end






















// 省
@interface regionProvice : NSObject
@property (nonatomic, strong) NSNumber *is_zhixia;
@property (nonatomic, copy) NSString *provincename;
@property (nonatomic, strong) NSNumber *provinceid;
@property (nonatomic, strong) NSMutableArray *cities;


- (instancetype)initWithDict:(NSDictionary *)Dict;
@end

// 市
@interface regionCity : NSObject
@property (nonatomic, strong) NSNumber *provinceid;
@property (nonatomic, strong) NSNumber *cityid;
@property (nonatomic, copy) NSString *cityname;
@property (nonatomic, strong) NSMutableArray *areas;
@property (nonatomic, strong) NSNumber * is_system;

- (instancetype)initWithDict:(NSDictionary *)Dict;
@end

// 区
@interface regionArea : NSObject
@property (nonatomic, strong) NSNumber * cityid;
@property (nonatomic, strong) NSNumber * areaid;
@property (nonatomic, copy) NSString *areaname;
@property (nonatomic, strong) NSNumber *is_system;

- (instancetype)initWithDict:(NSDictionary *)Dict;
@end
